#
# Be sure to run `pod lib lint MPTToolsLibrary.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MPTToolsLibrary'
  s.version          = '0.1.3'
  s.summary          = 'A short description of MPTToolsLibrary.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/766032945/MPTToolsLibrary'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '766032945' => 'jiaxuzhou@yixia.com' }
  s.source           = { :git => 'https://gitee.com/hao-yun/MPTToolsLibrary', :tag => s.version.to_s }

  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  s.requires_arc = true

  s.source_files = 'MPTToolsLibrary/Classes'

  s.subspec 'MPBTools' do |ss|
    ss.source_files = 'MPTToolsLibrary/Classes/MPBTools/*.{h,m}'
    ss.subspec 'MPBToolsDecrypt' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsDecrypt/*.{h,m}'
    end

    ss.subspec 'MPBToolsFilePath' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsFilePath/*.{h,m}'
    end


    ss.subspec 'MPBToolsFoundation' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsFoundation/*.{h,m}'
    end


    ss.subspec 'MPBToolsNotification' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsNotification/*.{h,m}'
    end

    ss.subspec 'MPBToolsUserDefaults' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUserDefaults/*.{h,m}'
    end

    ss.subspec 'MPBToolsSystemPrivacy' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsSystemPrivacy/*.{h,m}'
    end

    ss.subspec 'MPBToolsOtherCategory' do |sss|
    sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsOtherCategory/*.{h,m}'
    end


    ss.subspec 'MPBToolsUILayout' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/*.{h,m}'
        sss.subspec 'UIView' do |ssss|
            ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIView/*.{h,m}'
        end

        sss.subspec 'UIImage' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIImage/*.{h,m}'
        end

        sss.subspec 'UIFont' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIFont/*.{h,m}'
        end

        sss.subspec 'UIColor' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIColor/*.{h,m}'
        end

        sss.subspec 'UIStatusBar' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIStatusBar/*.{h,m}'
        end

        sss.subspec 'UIButton' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIButton/*.{h,m}'
        end

        sss.subspec 'UITabelView' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UITabelView/*.{h,m}'
        end

        sss.subspec 'UIDevice' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIDevice/*.{h,m}'
        end

        sss.subspec 'UIEmoji' do |ssss|
        ssss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBToolsUILayout/UIEmoji/*.{h,m}'
        end

    end

    ss.subspec 'MPBModel' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/MPBModel/*.{h,m}'
        end

    ss.subspec 'uidevice-extension' do |sss|
        sss.source_files = 'MPTToolsLibrary/Classes/MPBTools/uidevice-extension/*.{h,m}'
        end

    end

  # s.resource_bundles = {
  #   'MPTToolsLibrary' => ['MPTToolsLibrary/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
    s.frameworks = 'UIKit', 'AddressBook','Contacts', 'HealthKit'
    s.dependency 'GTMBase64', '~> 1.0.0'
    s.libraries = 'z'

end
